import type { SystemRole } from '../auth/roles';

export interface AccountInfo {
  paths: Paths;
  menus: Menu[];
  user: UserProfile;
  roleGroup: string;
  oss: boolean;
}
interface Menu {
  id: string;
  label: string;
  children: Menu[];
}
export interface UserProfile {
  admin: boolean;
  avatar: string;
  deptId: string;
  email: string;
  lang: string;
  loginDate: string;
  loginIp: string;
  nickName: string;
  sex: string;
  status: string;
  telephone: string;
  timezone: string;
  userId: string;
  userName: string;
  storeNo: string;
  platform: string;
  password: string;
  roles?: SystemRole[];
  roleIds?: string[];
}
interface Paths {
  [key: string]: string;
}

export interface UserDetail {
  roleIds: string[];
  roles: SystemRole[];
  user: UserProfile;
}
